using System;
using System.Collections.Generic;

using DeviceManager.Device;
using DeviceManager.Kal.KXDevice;

namespace DeviceManager.DeviceImpl
{
    public class DeviceFactory
    {
        Dictionary<DeviceEnum, IDeviceImpl> deviceContainer = new Dictionary<DeviceEnum, IDeviceImpl>();

        public bool BuildDeviceFactory()
        {
            if (ATMPlatformSetting.GetATMPlatform() == ATMPlatform.KAL)
            {
                deviceContainer.Add(DeviceEnum.JOURNAL_PRINTER, new KXJournalPrinterImpl());
                deviceContainer.Add(DeviceEnum.PIN_PAD, new KXPinPadImpl());
                return true;
            }
            else if (ATMPlatformSetting.GetATMPlatform() == ATMPlatform.KAL)
            {
                return true;
            }

            return false;
        }
    }
}
